import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int n = sc.nextInt();
            int[][] arr1 = new int[6][2];
            int[][] arr2 = new int[6][2];
            for(int i = 0; i < n;i++){
                int j = sc.nextInt();
                arr1[i][0] = j;
                arr1[i][1] = sc.nextInt();
                arr2[i][0] = j;
                arr2[i][1] = sc.nextInt();
            }
            Arrays.sort(arr1, new Comparator<int[]>() {
                @Override
                public int compare(int[] o1, int[] o2) {
                    return o1
                }
            });
        }
    }
}
